classdef PopulationAwithMutation < PopulationA
    %UNTITLED Summary of this class goes here
    %  To co w PopulationA tylko z mutacja
    
    properties
    end
    
    methods
        
        function obj = PopulationAwithMutation(size, IndividualsClass)
            obj = obj@PopulationA(size, IndividualsClass);
            
            obj.Crosser = SimpleMutationCrosser();
        end
        
%         function [child1, child2] = cross( obj, p1, p2 )
%             child1 = obj.IndividualsClass.new(); %have to add .new static function to Individual implementation
%             child2 = obj.IndividualsClass.new();
%             
%             [conn1, conn2] = cross_connections( p1.connections, p2.connections, obj.pattern );
%             mutation_density = 0.02;
%             child1.connections = xor(conn1, random_connections( obj.individuals(1).stops.number, mutation_density ));           
%             child2.connections = xor(conn2, random_connections( obj.individuals(1).stops.number, mutation_density ));
%         end
        
        
    end
    
end

